import request from '@/utils/request'

// 查询DataRoom外部用户列表
export function listDdExternalUser(query) {
  return request({
    url: '/user/ddExternalUser/list',
    method: 'get',
    params: query
  })
}

// 查询DataRoom外部用户详细
export function getDdExternalUser(id) {
  return request({
    url: '/user/ddExternalUser/' + id,
    method: 'get'
  })
}

// 保存DataRoom外部用户
export function saveDdExternalUser(data) {
  return request({
    url: '/user/ddExternalUser/save',
    method: 'post',
    data: data
  })
}

// 删除DataRoom外部用户
export function delDdExternalUser(id) {
  return request({
    url: '/user/ddExternalUser/' + id,
    method: 'delete'
  })
}

// 修改用户状态
export function statusChange(id, status) {
  return request({
    url: '/user/ddExternalUser/statusChange/' + id + '/' + status,
    method: 'post'
  })
}

// 导出DataRoom外部用户
export function exportDdExternalUser(query) {
  return request({
    url: '/user/ddExternalUser/export',
    method: 'get',
    params: query
  })
}
